package com.zhuqi.mapper;

import com.zhuqi.domain.ChatMessageDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChatMessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ChatMessageDo record);

    int insertSelective(ChatMessageDo record);

    ChatMessageDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ChatMessageDo record);

    int updateByPrimaryKey(ChatMessageDo record);

	List<ChatMessageDo> selectByUserName(@Param("username") String username);
}